
var getContext = function () {

    //详细内容
    $.ajax({
        type:"POST",
        url:WebSite.AskerUnansweredPage.searchquestion_detail,
        dataType:"json",
        data:{
            "pk_user":getUrlParam("pk_user"),
            "pk_question":getUrlParam("pk_question")
        },
        success:function(resultData){
            var questionTemplate = Handlebars.compile($("#left_div_template").html());
            $("#left_div").html(questionTemplate(resultData));
        },
        error:function(){
            alert("还没有详细的问题哦");
        }
    });

};

//改变时间格式
Handlebars.registerHelper("transdate", function(str,options) {
    return new Date(parseInt(str)).toLocaleString();
});

//跳转到修改问题页面s
var updateQuestion = function(pk_qn){

    window.location.href = WebSite.CommitPage.url + "&pk_question=" + pk_qn;
};
//弹出附件上传
function getUpload(){
    $(".uploadDisplay").addClass("uploadDisplay-block");
};
